# -*- coding: utf-8 -*-
# __author__ : Ricky
# __createTime__ : 2022/1/23 18:27
# __fileName__ : py sendMsg.py
# __devIDE__ : PyCharm
from kam_op.base import OpBase
"""
/send_msg/text	发送文本
/send_msg/image	发送图片
/send_msg/video	发送视频
/send_msg/file	发送文件
/send_msg/emoji	发送动态表情
/send_msg/group_at	发送群消息并 at
/send_msg/share_link	发送链接
/send_msg/share_music	发送音乐
/send_msg/share_card	发送名片
/send_msg/share_mini	发送小程序
/send_msg/forward	消息转发
"""
class SendMsg(OpBase):
    prefix = "send_msg"

    def sendText(self,data):
        return self.dispatchMsg("text", data)
    def sendImage(self,data):
        return self.dispatchMsg("image", data)
    def sendVideo(self,data):
        return self.dispatchMsg("video", data)
    def sendFile(self,data):
        return self.dispatchMsg("file", data)
    def sendEmoji(self,data):
        return self.dispatchMsg("emoji", data)
    def sendGroupAt(self,data):
        return self.dispatchMsg("group_at", data)
    def sendLink(self,data):
        return self.dispatchMsg("share_link", data)
    def sendMusic(self,data):
        return self.dispatchMsg("share_music", data)
    def sendCard(self,data):
        """
        已被禁用
        """
        return self.dispatchMsg("share_card", data)
    def sendMini(self,data):
        return self.dispatchMsg("share_mini", data)
    def forward(self,data):
        return self.dispatchMsg("forward", data)